package io;
import java.io.*;

public class OOSDemo {
    public static void main(String[] args) throws IOException {
        String[] otherInfo = {"是一名练习两年半的偶像练习生,喜欢唱跳rup 篮球"};
        Student zy = new Student("只因",25,"男",otherInfo);
        System.out.println(zy);
        ObjectOutputStream oos = new ObjectOutputStream(new FileOutputStream("student.obj"));
        oos.writeObject(zy);
        System.out.println("完成");
        oos.close();
    }

}
